package com.gm.wj.service;

import com.gm.wj.dao.SysImageDAO;
import com.gm.wj.entity.SysImage;
import com.gm.wj.util.MyTime;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @program: wj
 * @description:
 * @author: Huang_shengjun
 * @create: 2020-08-22 11:19
 **/
@Service
public class SysImageService {

    @Autowired
    SysImageDAO sysImageDAO;

    public SysImage add(SysImage sysImage){
        sysImage.setCreateTime( MyTime.getStringDate());
        return sysImageDAO.save(sysImage);
    }
}
